<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectNewsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//项目新闻表
        Schema::create('project_news', function(Blueprint $table)
        {
            $table->increments('id') ;              //新闻id
            $table->unsignedInteger('project_id') ; //项目id
            $table->string('news_title') ;          //新闻标题
            $table->unsignedInteger('img_logo_id'); //新闻logo
            $table->string('news_intro') ;          //新闻简介
            $table->text('news_comment') ;          //新闻内容
            $table->timestamp('news_time') ;      //新闻发布时间
            $table->string('news_tags');          //新闻标签
            $table->softDeletes();
            $table->timestamps();
        });
    }
	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
        Schema::drop('project_news');
	}

}
